Certification
Pada halaman Employee Certification ini Anda dapat menggunakan metode :
POST
Add new Certificate of Employee
Tujuan : Untuk menambahkan sertifikat baru yang dimiliki oleh seorang Karyawan
Method : POST
API Endpoint : [[baseurl]]/api/integration/v1/employee/certifications
HEADER
X-TenantID: [[tenantid]]
Authorization: Bearer [[accesstoken]]
Untuk mengetahui [[baseurl]], dan [[tenantid]], Anda dapat
mempelajarinya pada halaman
Integration Credential.
Dan untuk [[accesstoken]] dapat dipelajari pada halaman Authorization Token.
BODY PAYLOAD (JSON)
{
"employeeNo": "1021121",
"name": "Mikrotik",
"description": null,
"certificationNo": null,
"principle": null,
"issueDate": null,
"expirationDate": null,
"active": true
}
CONSUME VIA CURL
curl --location --request POST '[[baseurl]]/api/integration/v1/employee/certifications' \
--header 'X-TenantID: [[tenantid]]' \
--header 'Authorization: Bearer [[accesstoken]]' \
--header 'Content-Type: application/json' \
--data-raw '{
"employeeNo": "1021121",
"name": "Mikrotik",
"description": null,
"certificationNo": null,
"principle": null,
"issueDate": null,
"expirationDate": null,
"active": true
}'
API Response :
{
"message": "Create Data Successfully",
"error": false
}
GET
Get detail Employee Certifications with employeeNo parameter
Tujuan : Untuk mendapatkan detail sertifikat yang dimiliki Karyawan dengan parameter employeeNo
Method : GET
API Endpoint : [[baseurl]]/api/integration/v1/employee/certifications?active=[[value]]&employeeNo=[[employeenumber]]
Parameter [[value]] diisi dengan "true" jika data karyawan tersebut aktif atau "false" jika data karyawan tersebut tidak aktif.
Dan parameter [[employeenumber]] diisi dengan nomor karyawan yang diinginkan.
HEADER
X-TenantID: [[tenantid]]
Authorization: Bearer [[accesstoken]]
CONSUME VIA CURL
curl --location --request GET '[[baseurl]]/api/integration/v1/employee/certifications?active=[[value]]&employeeNo=[[employeenumber]]' \
--header 'X-TenantID: [[tenantid]]' \
--header 'Authorization: Bearer [[accesstoken]]'
Untuk mengetahui [[baseurl]], dan [[tenantid]], Anda dapat mempelajarinya pada halaman
Integration Credential.
Dan untuk [[accesstoken]] dapat dipelajari pada halaman Authorization Token.
API Response :
[
{
"employeeId": "eba2b46b-929c-11eb-97ce-0adbcc9eaaa8",
"employeeNo": "1219003",
"details": [
{
"id": "c17df811-1aad-4e6c-ba1b-c5b182d85eea",
"name": "cert Tes",
"description": "cert Tes",
"certificationNo": "1321111AADAD",
"principle": "Test",
"issueDate": "2021-03-29",
"expirationDate": "2021-05-13",
"active": true
},
{
"id": "7a69944f-b9aa-42e3-b54f-cb75f4219b35",
"name": "CHANGE MG 30",
"description": "testtttt2",
"certificationNo": "77777",
"principle": "Google",
"issueDate": "2019-10-01",
"expirationDate": "2021-10-01",
"active": true
}
]
}
]